﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Benefit.Service.Sys
{
    /// <summary>
    /// 服务器状态
    /// </summary>
    public class ServiceServerStatus : Benefit.Interface.Sys.IServerStatus
    {
        Benefit.DB.DBManager db = null;
        public ServiceServerStatus(Benefit.DB.DBManager db)
        {
            this.db = db;
        }
        /// <summary>
        /// 设置目前服务器状态
        /// </summary>
        /// <returns></returns>
        public void SetServerStatus(Models.Sys._ServerStatus _status)
        {
            Models.Sys.ServerStatus.Status = _status;
        }
        /// <summary>
        /// 得到服务器目前状态
        /// </summary>
        /// <returns></returns>
        public Models.Sys._ServerStatus GetServerStatus()
        {
            return Models.Sys.ServerStatus.Status;
        }
    }

}
